# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=highscore
pkgver=40.0
pkgrel=0
pkgdesc="Retro gaming application"
url="https://gitlab.gnome.org/World/highscore"
# s390x: blocked by libhandy1-dev, librsvg-dev, tracker-dev
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
makedepends="
	grilo-dev
	gtk+3.0-dev
	libarchive-dev
	libhandy1-dev
	libmanette-dev
	librsvg-dev
	libsoup-dev
	libxml2-dev
	meson
	retro-gtk-dev
	sqlite-dev
	tracker-dev
	vala
	"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/highscore/-/archive/$pkgver/highscore-$pkgver.tar.gz
	0001-merge-file.patch
	0002-use-tracker-3.0.patch
	"
options="!check"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
39e1abfe4dae8a349449d8a42070a5f1eb9e7556c5857477ef24213710aff09faebffd0e77ce1aaf22f65ea3e7d057c6f8b590810dcab97324f8772dd22a31fa  highscore-40.0.tar.gz
e303490fc6b972e42b2c7f32e48f70560762923561ce278479c97e9106e9356c8042b84f5282ca24d411d1cb2f883ca035c8e979a2640645dc0dd31042e3b4cc  0001-merge-file.patch
4568cfc6b34ff6e28102f2da2bf6edc93448076c2246e65ad9137288299917afc69d6ee9a0470b15d5226974f1e9088ef9c23a363fdc5a3da6ed61c506e8760b  0002-use-tracker-3.0.patch
"
